﻿@model IEnumerable<MWTWorkUnitMgmtTool.BusinessEntities.Mapping>

@{
    ViewBag.Title = "Search";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Search</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
<thead>
    <tr>
        
        <th>
            WorkUnitCode
        </th>
        <th>
            LocationCode
        </th>
        <th>
            ItemCode
        </th>
        <th>
            ItemName
        </th>
             
    </tr>
    </thead>
    <tbody>

@foreach (var item in Model) {
    <tr>
        
        <td>
            @Html.DisplayFor(modelItem => item.WorkUnitCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LocationCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemName)
        </td>
        
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}
</tbody>
</table>
